package fu.capstone.hanoicityguide.business.bo.commondialogue;

import java.util.ArrayList;

import android.content.Context;
import fu.capstone.hanoicityguide.business.model.CommonDialogue;
import fu.capstone.hanoicityguide.dataaccess.commondialogue.CommonDialogueDAO;
import fu.capstone.hanoicityguide.dataaccess.commondialogue.CommonDialogueDAOImp;

public class CommonDialogueBOImp implements CommonDialogueBO {

	private CommonDialogueDAO dao;
	private Context context;

	public void setContext(Context context) {
		this.context = context;
	}

	public CommonDialogueBOImp() {

	}

	public CommonDialogueBOImp(Context ctx) {
		this.context = ctx;
		dao = new CommonDialogueDAOImp(context);
	}

	@Override
	public ArrayList<CommonDialogue> listCommonDialogue(String keyword,
			String sorter) {
		// TODO Auto-generated method stub
		ArrayList<CommonDialogue> arrCommonDialogue = dao.listCommonDialogue(
				keyword, sorter);
		return arrCommonDialogue;
	}

}
